-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Add projects api #130
✨ Add projects api #130
Conversation
This code does not work yet. D, [2017-07-02T22:04:31.221510 #99958] DEBUG -- : [api.bitbucket.org] GET /2.0/teams/altabjpworks/projects (0.792 s)
/Users/hirakiuc/repos/src/github.com/hirakiuc/tinybucket/lib/tinybucket/response/handler.rb:13:in `on_complete': GET https://api.bitbucket.org/2.0/teams/altabjpworks/projects 404 {"type": "error", "error": {"message": "Resource not found", "detail": "There is no API hosted at this URL.\n\nFor information about our API's, please refer to the documentation at: https://developer.atlassian.com/bitbucket/api/2/reference/"}} (Tinybucket::Error::NotFound)
from /Users/hirakiuc/repos/src/github.com/hirakiuc/tinybucket/.bundle/ruby/2.3.0/gems/faraday-0.11.0/lib/faraday/response.rb:9:in `block in call'
from /Users/hirakiuc/repos/src/github.com/hirakiuc/tinybucket/.bundle/ruby/2.3.0/gems/faraday-0.11.0/lib/faraday/response.rb:61:in `on_complete'
from /Users/hirakiuc/repos/src/github.com/hirakiuc/tinybucket/.bundle/ruby/2.3.0/gems/faraday-0.11.0/lib/faraday/response.rb:8:in `call'
from /Users/hirakiuc/repos/src/github.com/hirakiuc/tinybucket/.bundle/ruby/2.3.0/gems/faraday_middleware-0.11.0.1/lib/faraday_middleware/response_middleware.rb:30:in |
It looks like that the API is not provided yet to users... 😩 |
Suggest raising an issue at https://bitbucket.org/site/master/issues rather than relying on the community forum. Thanks for the work you've done so far. |
Thanks for your suggestion 👍 I'll create the issue at the https://bitbucket.org/site/master/issues if there is no answer from the community in few days. |
I created a new support request and waiting for the answer... |
I received a message from Bitbucket support team and fixed the issue! 👍 This code works for me with this branch. bucket = Tinybucket.new
bucket.teams('admin').each do |team|
p team
team.projects.each do |project|
p project
end
end |
That code works for me as well! Could you include support for finding the repos belonging to a team – /2.0/teams/{username}/repositories Thanks! |
Oh, Sorry. I found your comment, just now.
I'll try to do that after this pull request. 😄 |
Perfect, thanks :) |
LGTM 👍 |
Add
/2.0/teams/<owner>/projects
APIRef: #128
Detail
Add projects API on team.
New APIs